import { request } from "../../utils/request";
// 获取通知列表
export function noticeList(data: any) {
    return request({
        url: `/dpl/v2/admin/notice/list`,
        method: "post",
        data,
    });
}
// 新增通知
export function noticeAdd(data: any) {
    return request({
        method: "post",
        url: `/dpl/v2/admin/notice`,
        data,
    });
}
// 发送通知
export function noticeSend(data: any) {
    return request({
        method: "post",
        url: `/dpl/v2/admin/notice/send`,
        data,
    });
}
// 编辑通知内容
export function noticeAdmin(data: any) {
    return request({
        method: "put",
        url: `/dpl/v2/admin/notice`,
        data,
    });
}
// 删除通知
export function noticeDelete(data: any) {
    return request({
        method: "delete",
        url: `/dpl/v2/admin/notice/${data}`,
    });
}